package org.example.client.order.api;

import com.alibaba.cola.dto.Response;
import com.alibaba.cola.dto.SingleResponse;
import org.example.client.order.dto.clientobject.OrderCO;
import org.example.client.order.dto.cmd.OrderCreateCmd;

public interface OrderServiceI {

    /**
     * 按订单编号获取
     * @param orderNo 订单号
     * @return {@link SingleResponse }<{@link OrderCO }>
     */
    SingleResponse<OrderCO> getByOrderNo(String orderNo);

    /**
     * 创建订单
     * @param orderCreateCmd 订单创建命令
     * @return {@link Response }
     */
    Response createOrder(OrderCreateCmd orderCreateCmd);
}
